package com.simon.facadepattern;

public class Light {
    private String position;

    //有参构造方法,构造方法中右参数，则再新建对象，或者初始化的时候就需要传参
    public Light(String position){
        this.position = position;
    }

    public void on(){
        System.out.println(this.position+"灯打开！");
    }

    public void off(){
        System.out.println(this.position+"灯关掉");
    }

}
